/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Request model for updating a S3 configuration
 */
@Schema(description = "Request model for updating a S3 configuration")

public class S3ConfigUpdateRequest {
  @JsonProperty("bucketUrl")
  private String bucketUrl = null;

  @JsonProperty("accessKey")
  private String accessKey = null;

  @JsonProperty("secretKey")
  private String secretKey = null;

  @JsonProperty("region")
  private String region = null;

  @JsonProperty("endpointUrl")
  private String endpointUrl = null;

  @JsonProperty("bucketName")
  private String bucketName = null;

  public S3ConfigUpdateRequest bucketUrl(String bucketUrl) {
    this.bucketUrl = bucketUrl;
    return this;
  }

   /**
   * S3 object storage bucket URL
   * @return bucketUrl
  **/
  @Schema(description = "S3 object storage bucket URL")
  public String getBucketUrl() {
    return bucketUrl;
  }

  public void setBucketUrl(String bucketUrl) {
    this.bucketUrl = bucketUrl;
  }

  public S3ConfigUpdateRequest accessKey(String accessKey) {
    this.accessKey = accessKey;
    return this;
  }

   /**
   * Access Key ID
   * @return accessKey
  **/
  @Schema(description = "Access Key ID")
  public String getAccessKey() {
    return accessKey;
  }

  public void setAccessKey(String accessKey) {
    this.accessKey = accessKey;
  }

  public S3ConfigUpdateRequest secretKey(String secretKey) {
    this.secretKey = secretKey;
    return this;
  }

   /**
   * Secret Access Key
   * @return secretKey
  **/
  @Schema(description = "Secret Access Key")
  public String getSecretKey() {
    return secretKey;
  }

  public void setSecretKey(String secretKey) {
    this.secretKey = secretKey;
  }

  public S3ConfigUpdateRequest region(String region) {
    this.region = region;
    return this;
  }

   /**
   * S3 region
   * @return region
  **/
  @Schema(description = "S3 region")
  public String getRegion() {
    return region;
  }

  public void setRegion(String region) {
    this.region = region;
  }

  public S3ConfigUpdateRequest endpointUrl(String endpointUrl) {
    this.endpointUrl = endpointUrl;
    return this;
  }

   /**
   * &amp;#128679; Deprecated since v4.24.0  S3 object storage endpoint URL  use &#x60;bucketUrl&#x60; instead
   * @return endpointUrl
  **/
  @Schema(description = "&#128679; Deprecated since v4.24.0  S3 object storage endpoint URL  use `bucketUrl` instead")
  public String getEndpointUrl() {
    return endpointUrl;
  }

  public void setEndpointUrl(String endpointUrl) {
    this.endpointUrl = endpointUrl;
  }

  public S3ConfigUpdateRequest bucketName(String bucketName) {
    this.bucketName = bucketName;
    return this;
  }

   /**
   * &amp;#128679; Deprecated since v4.24.0  S3 bucket name  use &#x60;bucketUrl&#x60; instead
   * @return bucketName
  **/
  @Schema(description = "&#128679; Deprecated since v4.24.0  S3 bucket name  use `bucketUrl` instead")
  public String getBucketName() {
    return bucketName;
  }

  public void setBucketName(String bucketName) {
    this.bucketName = bucketName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    S3ConfigUpdateRequest s3ConfigUpdateRequest = (S3ConfigUpdateRequest) o;
    return Objects.equals(this.bucketUrl, s3ConfigUpdateRequest.bucketUrl) &&
        Objects.equals(this.accessKey, s3ConfigUpdateRequest.accessKey) &&
        Objects.equals(this.secretKey, s3ConfigUpdateRequest.secretKey) &&
        Objects.equals(this.region, s3ConfigUpdateRequest.region) &&
        Objects.equals(this.endpointUrl, s3ConfigUpdateRequest.endpointUrl) &&
        Objects.equals(this.bucketName, s3ConfigUpdateRequest.bucketName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(bucketUrl, accessKey, secretKey, region, endpointUrl, bucketName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class S3ConfigUpdateRequest {\n");
    
    sb.append("    bucketUrl: ").append(toIndentedString(bucketUrl)).append("\n");
    sb.append("    accessKey: ").append(toIndentedString(accessKey)).append("\n");
    sb.append("    secretKey: ").append(toIndentedString(secretKey)).append("\n");
    sb.append("    region: ").append(toIndentedString(region)).append("\n");
    sb.append("    endpointUrl: ").append(toIndentedString(endpointUrl)).append("\n");
    sb.append("    bucketName: ").append(toIndentedString(bucketName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
